package com.clown.smsbase.Dao;

import com.clown.smsbase.Domain.BaseEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

@NoRepositoryBean
public interface GenericDao<T extends BaseEntity<PK>, PK extends Serializable> extends JpaRepository<T, PK> {
    Page<T> findByNameLike(String name, Pageable pageable);
}
